package com.easyapi.common.enums.user;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author: zhuyu
 * @Time: 22:59
 * @ClassName: Permission
 */
@Getter
@AllArgsConstructor
public enum Permission {
    /**
     * 用户中心相关权限
     */
    USER_PERMISSION_ALL(100, "all_user_permission", "所有的用户中心权限"),
    USER_ADD(101, "add_user", "添加用户"),
    USER_BINDING(102,"bind_user","禁用用户"),
    USER_DELETE(103,"delete_user","删除用户"),
    USER_LIST(104,"list_user","获取用户列表"),
    USER_ANYONE_DETAIL(105,"get_user_detail","查看任意用户的脱敏信息"),
    USER_PERMISSION_UPDATE(106,"update_role_permission","更改角色对应的权限"),
    user_role_update(107,"update_user_role","更改用户对应的角色"),
    user_role_create(108,"create_role","创建角色");
    private final Integer code;
    private final String name;
    private final String displayName;
    }
